import { useInterval } from 'ahooks';
import { useMemo, useState } from 'react';

const queryFormTable = () => {
  const [queryForm, setFrom] = useState({});
  const [columns, setColumns] = useMemo(() => [{}]);
  const [loading, setLoading] = useState(false);
  const [data, setData] = useState([]);
  useInterval(() => {
    console.log(111);
    setData([]);
  }, 1000);
  return (
    <>
      <QueryForm
        form={queryForm}
        columns={columns}
        onQuery={onQuery}
        onReset={onReset}
      />
      <QueryTable loading={loading} columns={columns} data={data} />
    </>
  );
};

export default queryFormTable;
